Skip to content

feat(rn): 修复蓝牙相关 api 表现 - #2435

Merged
hiyuki merged 20 commits into
didi:masterfrom
dos1in:fix/bluetooth-msg
Jul 1, 2026
Merged

feat(rn): 修复蓝牙相关 api 表现#2435
hiyuki merged 20 commits into
didi:masterfrom
dos1in:fix/bluetooth-msg

Conversation

@dos1in

@dos1in dos1in commented Mar 10, 2026

Copy link
Copy Markdown
Member
  1. 完善错误日志输出内容
  2. 鸿蒙下 writeBLECharacteristicValue 需要调用 write 而不是 writeNoResponse
  3. 规范回调行为
API on 支持回调数量 off 取消回调行为
BluetoothDeviceFound 1 个(单回调,后一次覆盖前一次) 无参清空唯一回调
BLECharacteristicValueChange 1 个(单回调,后一次覆盖前一次) 无参清空唯一回调
BluetoothAdapterStateChange 多回调,按引用去重 不传清空全部;传 callback 只移除该 callback
BLEConnectionStateChange 多回调,按引用去重 不传清空全部;传 callback 只移除该 callback

@dos1in
dos1in marked this pull request as draft March 12, 2026 12:29
@dos1in
dos1in marked this pull request as ready for review March 13, 2026 05:31
@hiyuki
hiyuki merged commit b13066e into didi:master Jul 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants